package com.starchen.optimalselection.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.starchen.optimalselection.common.mapper.SkuImagesMapper;
import com.starchen.optimalselection.common.model.SkuImages;
import com.starchen.optimalselection.common.service.SkuImagesService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("skuImagesService")
public class SkuImagesServiceImpl extends ServiceImpl<SkuImagesMapper, SkuImages> implements SkuImagesService {

    @Override
    public List<SkuImages> listBySkuId(Long skuId) {
        return this.list(new QueryWrapper<SkuImages>().eq("sku_id", skuId));
    }

}